Skip to content

ENT-13829: Errors on missing value and mutually exclusive types in vars promises#63

Draft
SimonThalvorsen wants to merge 3 commits intocfengine:mainfrom
SimonThalvorsen:main
Draft

ENT-13829: Errors on missing value and mutually exclusive types in vars promises#63
SimonThalvorsen wants to merge 3 commits intocfengine:mainfrom
SimonThalvorsen:main

Conversation

@SimonThalvorsen
Copy link
Copy Markdown
Contributor

No description provided.

@SimonThalvorsen SimonThalvorsen marked this pull request as draft April 13, 2026 14:38
for attr_node in attribute_nodes
for child in attr_node.children
if child.type == "attribute_name"
and vars_attrs.get(_text(child), {}).get("visibility", "") == "promiseType"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment to explain what visibility means here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonThalvorsen AFAICT you are using visibility to try to find out which attributes are mutually exclusive. I don't think that's correct. I don't see anything in the syntax description which covers this, so feel free to add a hardcoded list of the 7 options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants